package oop.a01oop.a02Polymorphism;

public class Test {
    public static void main(String[] args) {
        Person person = new Person(20,"wnader");
        Dog d = new Dog(2,"黑");
        Cat c = new Cat(2,"黑");
        person.keepPet(d,"骨頭");
        person.keepPet(c,"小鱼干");

    }
}
